﻿/**
作者：
 */
package com.zito.bean;

import javax.validation.groups.Default;


import com.downlove.validation.notnull.NotNull;
import com.downlove.validation.strlength.CheckLength;
import com.zito.pojo.ArticlePOJO;

@SuppressWarnings("serial")
public class Article extends ArticlePOJO {
	
	private Long id;
	private int type;
	private int status;
	private Long columnid;
	private Long specialid;
	@NotNull(message = "请填写文章标题", groups = { Default.class })
	@CheckLength(message = "文章标题字符长度不能小于4个字符，不能大于200个字符，一个中文为2个字符", min = 4, max = 200, groups = { Default.class })
	private String title;
	@NotNull(message = "请填写文章内容", groups = { Default.class })
	private String content;
	private int view = 0;
	private int orders = 0;
	private int isphoto = 0;
	private String mainphoto;
	private int topic = 0;
	private int score;
	private Long authorid;
	private String author;
	private String postdate;
	private Long auditorid;
	private String auditor;
	private String auditordate;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Long getColumnid() {
		return columnid;
	}
	public void setColumnid(Long columnid) {
		this.columnid = columnid;
	}
	public Long getSpecialid() {
		return specialid;
	}
	public void setSpecialid(Long specialid) {
		this.specialid = specialid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getView() {
		return view;
	}
	public void setView(int view) {
		this.view = view;
	}
	public int getOrders() {
		return orders;
	}
	public void setOrders(int orders) {
		this.orders = orders;
	}
	public int getIsphoto() {
		return isphoto;
	}
	public void setIsphoto(int isphoto) {
		this.isphoto = isphoto;
	}
	public String getMainphoto() {
		return mainphoto;
	}
	public void setMainphoto(String mainphoto) {
		this.mainphoto = mainphoto;
	}
	public int getTopic() {
		return topic;
	}
	public void setTopic(int topic) {
		this.topic = topic;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public Long getAuthorid() {
		return authorid;
	}
	public void setAuthorid(Long authorid) {
		this.authorid = authorid;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getPostdate() {
		return postdate;
	}
	public void setPostdate(String postdate) {
		this.postdate = postdate;
	}
	public Long getAuditorid() {
		return auditorid;
	}
	public void setAuditorid(Long auditorid) {
		this.auditorid = auditorid;
	}
	public String getAuditor() {
		return auditor;
	}
	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}
	public String getAuditordate() {
		return auditordate;
	}
	public void setAuditordate(String auditordate) {
		this.auditordate = auditordate;
	}
}
